package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {


    /**
     * 订单支付页面
     * @param tradeVo
     * @return
     */
    OrderInfoVo trade(TradeVo tradeVo);

    /**
     * 提交订单
     * @param orderInfoVo
     */
    Map<String,Object> submitOrder(OrderInfoVo orderInfoVo);

    /**
     * 保存订单信息
     * @param orderNo
     * @param userId
     * @param orderInfoVo
     */
    void saveOrderInfo(String orderNo, Long userId, OrderInfoVo orderInfoVo);
}
